<template>
	{{ dictLabel }}
</template>
<script lang='ts' setup>
import { computed, PropType } from 'vue';
import { showDictValueByKey1 } from '@/static/js/dict/format.ts';
// 字典类型
import type { Dict } from '#/Dictionary.d.ts';
const props = defineProps({
	modelValue : {
		type    : String,
		require : true,
		default : ''
	},
	dictName   : {
		type    : String,
		require : true,
		default : () => null
	},
	dict       : {
		type    : Object as PropType<Dict>,
		require : true,
		default : () => {}
	}
});
let dictLabel = computed(() => showDictValueByKey1(props.dictName, props.dict, props.modelValue));
</script>